package cn.wolfcode.car.business.domain;


import cn.wolfcode.car.base.domain.User;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;
import lombok.Setter;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 套餐审核对象
 */
@Setter
@Getter
public class CarPackageAudit {
    private static final long serialVersionUID = 1L;
    public static final Integer STATUS_IN_ROGRESS = 0;  //审核中
    public static final Integer STATUS_REJECT = 1;      //审核拒绝
    public static final Integer STATUS_PASS = 2;        //审核通过
    public static final Integer STATUS_CANCEL = 3;      //审核撤销

    private Long id;
    private Long serviceItemId;             // 服务单项id
    private String serviceItemName;           // 服务单项名称
    private String serviceItemInfo;         // 服务单项备注
    private BigDecimal serviceItemPrice;    // 服务单项审核价格
    private ServiceItem serviceItem;        // 服务单项对象
    private String instanceId;              // 流程实例id
    private String creator;                 // 创建者
    private Long auditorId;                 // 当前审核人id
    private User auditor;                   // 当前审核人对象
    private Long bpmnInfoId;                // 关联流程id
    private BpmnInfo bpmnInfo;              // 关联流程定义对象
    private String info;                    // 备注
    private Integer status = STATUS_IN_ROGRESS;     //状态【进行中0/审核拒绝1/审核通过2/审核撤销3】
    @JsonFormat(pattern = "yyyy-MM-dd HH:ss")
    private Date auditTime;                 //最后审核时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:ss")
    private Date createTime;                //创建时间
}